package qsc.designpattern.builder;

/**
 * @auther QiuShangcheng
 * @create 2021/4/28
 */
/*建造者模式的核心--》指挥者角色*/
public class Director {

    public static Human createHumanByDirector(IBuilder builder){
        builder.createBody();
        builder.createFoot();
        builder.createHand();
        builder.createHead();
        return builder.createHuman();
    }
}
